var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock({
    "msg": "OK", 
		"code": 0, 
		"data": {
		"fieldList": [
			{
			"id": "symbol", 
			"name": "股票代码"
			}, 
			{
			"id": "tradeType", 
			"name": "类型"
			}, 
			{
			"id": "buyPrice", 
			"name": "买入价格"
			}, 
			{
			"id": "buyTime", 
			"name": "买入时间"
			}, 
			{
			"id": "sellPrice", 
			"name": "卖出价格"
			}, 
			{
			"id": "sellTime", 
			"name": "卖出时间"
			}, 
			{
			"id": "quantity", 
			"name": "交易数量"
			}, 
			{
			"id": "fee", 
			"name": "费用"
			}, 
			{
			"id": "pnl", 
			"name": "盈亏"
			}
		], 
		"list": [
			{
				"symbol": "002456.SZ", 
				"tradeType": "Sell", 
				"buyPrice": 20.3977, 
				"sellPrice": 20.42, 
				"quantity": 200, 
				"fee": 4.8013, 
				"buyTime": "Mar 27, 2018 9:38:02 AM", 
				"sellTime": "Mar 27, 2018 9:38:28 AM", 
				"pnl": -0.3413
			}
			]
		}
	})
}